/**
 * Copyright &copy; 2015-2020 <a href="http://www.easyhis.com/">easyhis</a> All rights reserved.
 */
package com.easy.dfcshop.entity;

import com.easy.common.utils.excel.annotation.ExcelField;
import com.easy.core.persistence.DataEntity;

import javax.validation.constraints.NotNull;

/**
 * 广告类型Entity
 * @author waylen chi
 * @version 2018-01-17
 */
public class AdvertCategory extends DataEntity<AdvertCategory> {
	
	private static final long serialVersionUID = 1L;
	private String id;
	private Integer cateId;		// 类型ID自增
	private String cateName;		// 类型名称
	private Integer cateImg;		// 类型图
	private String cateType;		// 1原料商 2-厂商 3-批发商  4-经销商
	private Integer sortNo;		// 排序
	
	public AdvertCategory() {
		super();
	}

	public AdvertCategory(String id){
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@NotNull(message="类型ID自增不能为空")
	@ExcelField(title="类型ID自增", align=2, sort=0)
	public Integer getCateId() {
		return cateId;
	}

	public void setCateId(Integer cateId) {
		this.cateId = cateId;
	}
	
	@ExcelField(title="类型名称", align=2, sort=1)
	public String getCateName() {
		return cateName;
	}

	public void setCateName(String cateName) {
		this.cateName = cateName;
	}
	
	@ExcelField(title="类型图", align=2, sort=2)
	public Integer getCateImg() {
		return cateImg;
	}

	public void setCateImg(Integer cateImg) {
		this.cateImg = cateImg;
	}
	
	@ExcelField(title="1原料商 2-厂商 3-批发商  4-经销商", align=2, sort=3)
	public String getCateType() {
		return cateType;
	}

	public void setCateType(String cateType) {
		this.cateType = cateType;
	}
	
	@ExcelField(title="排序", align=2, sort=4)
	public Integer getSortNo() {
		return sortNo;
	}

	public void setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
	}
	
}